<!DOCTYPE html>
<html>
<head lang="zh-cn">
    <link href="$!{__beat.servletContext.contextPath}/bootstrap/datepicker/datepicker3.css" rel="stylesheet">
    <link rel="stylesheet" href="$!{__beat.servletContext.contextPath}/bootstrap/css/App.css" type="text/css" />
    <link href="$!{__beat.servletContext.contextPath}/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    
    <link rel="stylesheet" type="text/css" href="$!{__beat.servletContext.contextPath}/css/wnl.css">
    <meta charset="UTF-8">
<style type="text/css">
        .table-center{
            text-align:center;
        }
        .table-center>tbody>tr>td{
            padding: 3px 10px;
        }
</style>
    <meta charset="UTF-8">
    <title>收入数据看板</title>
</head>
<body>
<div class="container-fluid">

    <div class="row" align="center" style="margin-bottom:8px; margin-top:5px;">
                <form class="form-inline" action="$!{__beat.servletContext.contextPath}/income/netflow" method="post">
                        <div class="form-group" style="width:180px">
                            <label for="businessName" style="padding-left:15px;">业务线：</label>
                            <select id="businessName" name="businessName" class="form-control input-sm" style="align:center; width:100px; ">
                               #foreach($buss in $businessList)
                               #set($i = $velocityCount - 1)
                                    <option value="$buss" #if("$buss" == $!businessName) selected #end>$business_CN_Map.get("$buss")</option>
                                #end
                            </select>
                        </div>  
                        <div class="form-group">                       
                               <input type="submit" value="查询" class="btn btn-primary btn-xs"> 
                        </div>
                </form>
    </div>

<!-- 城市部分  -->
    <div class="dataconWrap">
        <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{cityName}$!{businessName_CN} - 城市各产品流量</span>
            </div>
 
            <div class="dataShow">
                <div id='cityProOption' dateGrp='stat_date' statType='day' indexType='北京'>
                    <form class="form-inline">
                        <div class="form-group input-group input-group-sm" style="width: 20%;float: left">
                            <span class="input-group-addon">
                                <input id="time_checkbox_cityPro" type="checkbox">
                            </span>
                            <input id="time_input_cityPro" type="text" class="form-control input-sm" placeholder="添加对比" disabled>
                        </div>

                        <div class="form-group" style="width:150px; margin-left: 10%;">
                            <label for="cityPro">城市：</label>
                            <select id="cityPro" class="form-control input-sm" style="width:100px; ">
                                 #foreach($c in $zhixiaoCityList)
                                     <option value="$c">$c</option>
                                    #end
                            </select>
                        </div> 

                        <div class="form-group" style="width:150px; margin-left:5px">
                            <label for="index_cityPro">指标：</label>
                            <select id="index_cityPro" class="form-control  input-sm" style="width:100px; ">
                                #foreach($index in $indexList_EN)
                                    #set($i = $velocityCount - 1)
                                     <option value="$index">$indexList_CN.get($i)</option>
                                #end
                            </select>
                        </div> 

                        <button id="refreshCityPro_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>

                        <div class="btn-group btn-group-sm btn-tab" role="group" aria-label="Basic example"  style="float: right">
                            <button type="button" class="btn btn-default active btnCityPro" dateGrp='stat_date' statType='day'>日</button>
                            <button type="button" class="btn btn-default btnCityPro" dateGrp='week_begin' statType='week'>周</button>
                            <button type="button" class="btn btn-default btnCityPro" dateGrp='month_num' statType='month'>月</button>
                        </div>
                    </form>
                </div>

                <div>
                    <div id="cityPro_chart" style="height:380px;"></div>
                </div>
             </div><!-- dataShow  -->
           

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapseOne">
                                    直销城市明细(点击展开) <span id="cityProTable_date"></span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapseOne" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <table class="table table-bordered" id="cityProTable">
                                        <thead>
                                          <tr>
                                            <th>城市</th>
                                            <th>精准现金</th>
                                            <th>环比</th>
                                            <th>精准客户数</th>
                                            <th>置顶现金</th>
                                            <th>环比</th>
                                            <th>置顶客户数</th>
                                            <th>智能现金</th>
                                            <th>环比</th>
                                            <th>智能客户数</th>
                                            <th>城市PV</th>
                                            <th>流量变现率</th>
                                            <th>客户充实度</th>
                                          </tr>
                                        </thead>

                                    </table>
                                </div>
                            </div>
                    </div>
                   
                </div>

        </div> <!-- datacontent  -->


        <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{businessName_CN} - 城市产品流量对比</span>
            </div>
 
            <div class="dataShow">
                <div id='cityCmpOption' dateGrp='stat_date' statType='day'>
                    <form class="form-inline">

                        <div class="form-group" style="width:200px;margin-left:15px">
                            <label for="cityCmp_citys">城市：</label>
                            <input type="hidden" name="cityCmp_citys" id="cityCmp_citys" value="$!cityCmp_citys" /> 
                            <select multiple="multiple"  id="cityCmp_mul" class="form-control  input-sm">              
                                    #foreach($!{city} in ${zhixiaoCityList})
                                        <option value="$!{city}" #if ($cityCmp_citys.contains("$!{city}")) selected="selected" #end >
                                            $!{city}
                                        </option>
                                    #end
                            </select>  
                        </div>

                        <div class="form-group" style="width:150px; margin-left:5px">
                            <label for="index_cityCmp">指标：</label>
                            <select id="index_cityCmp" class="form-control  input-sm" style="width:100px; ">
                                #foreach($index in $indexList_EN)
                                    #set($i = $velocityCount - 1)
                                     <option value="$index">$indexList_CN.get($i)</option>
                                #end
                            </select>
                        </div> 

                        <div class="form-group input-group input-group-sm" style="margin-left: 15px">
                            <label for="proType_city" style="padding-right: 10px;">产品：</label>
                            <label class="radio-inline"><input type="radio" name="proType_city" id="proType_city" value="jingzhun" checked="checked" />精准</label>
                            <label class="radio-inline"><input type="radio" name="proType_city" id="proType_city" value="zhiding"/>置顶</label>
                            <label class="radio-inline"><input type="radio" name="proType_city" id="proType_city" value="zhineng"/>智能</label>
                        </div> 

                        <button id="refreshCityCmp_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>

                        <div class="btn-group btn-group-sm btn-tab" role="group" aria-label="Basic example"  style="float: right">
                            <button type="button" class="btn btn-default active btnCityCmp" dateGrp='stat_date' statType='day'>日</button>
                            <button type="button" class="btn btn-default btnCityCmp" dateGrp='week_begin' statType='week'>周</button>
                            <button type="button" class="btn btn-default btnCityCmp" dateGrp='month_num' statType='month'>月</button>
                        </div>
                    </form>
                </div>

                <div>
                    <div id="cityCmp_chart" style="height:380px;"></div>
                </div>

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapseTwo">
                                直销城市明细(点击展开) <span id="cityCmpTable_date"></span>
                                </a>
                            </h4>
                        </div>
                        <div id="collapseTwo" class="panel-collapse collapse">
                            <div class="panel-body">
                                <table class="table table-bordered" id="cityCmpTable">
                                    <thead>
                                          <tr>
                                            <th>城市</th>
                                            <th>精准现金</th>
                                            <th>环比</th>
                                            <th>精准客户数</th>
                                            <th>置顶现金</th>
                                            <th>环比</th>
                                            <th>置顶客户数</th>
                                            <th>智能现金</th>
                                            <th>环比</th>
                                            <th>智能客户数</th>
                                            <th>城市PV</th>
                                            <th>流量变现率</th>
                                            <th>客户充实度</th>
                                          </tr>
                                    </thead>

                                </table>
                            </div>
                        </div>
                    </div>
                </div>

            </div> <!-- dataShow  -->
        </div> <!-- datacontent  -->

<!-- 城市部分 end  -->

<!-- 类别部分 -->
#if("$!{businessName}" != "ershouche")
        <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{cateName}$!{businessName_CN} - 类别各产品流量</span>
            </div>
 
            <div class="dataShow">
                <div id='cateProOption' dateGrp='stat_date' statType='day' indexType='cost'>
                    <form class="form-inline">
                        <div class="form-group input-group input-group-sm" style="width: 20%;float: left">
                            <span class="input-group-addon">
                                <input id="time_checkbox_catePro" type="checkbox">
                            </span>
                            <input id="time_input_catePro" type="text" class="form-control input-sm" placeholder="添加对比" disabled>
                        </div>

                        <div class="form-group" style="width:150px; margin-left: 10%;">
                            <label for="catePro">类别：</label>
                            <select id="catePro" class="form-control input-sm" style="width:100px; ">
                                 #foreach($c in $cateList)
                                     <option value="$c">$c</option>
                                 #end
                            </select>
                        </div> 

                        <div class="form-group" style="width:150px; margin-left:5px">
                            <label for="index_catePro">指标：</label>
                            <select id="index_catePro" class="form-control  input-sm" style="width:100px; ">
                                #foreach($index in $indexList_EN)
                                    #set($i = $velocityCount - 1)
                                     <option value="$index">$indexList_CN.get($i)</option>
                                #end
                            </select>
                        </div> 

                        <button id="refreshCatePro_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>

                        <div class="btn-group btn-group-sm btn-tab" role="group" aria-label="Basic example"  style="float: right">
                            <button type="button" class="btn btn-default active btnCatePro" dateGrp='stat_date' statType='day'>日</button>
                            <button type="button" class="btn btn-default btnCatePro" dateGrp='week_begin' statType='week'>周</button>
                            <button type="button" class="btn btn-default btnCatePro" dateGrp='month_num' statType='month'>月</button>
                        </div>
                    </form>
                </div>

                <div>
                    <div id="catePro_chart" style="height:380px;"></div>
                </div>
             </div><!-- dataShow  -->
           

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapseOne">
                                    直销城市明细(点击展开) <span id="cateProTable_date"></span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapseOne" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <table class="table table-bordered" id="cateProTable">
                                        <thead>
                                          <tr>
                                            <th>城市</th>
                                            <th>精准现金</th>
                                            <th>环比</th>
                                            <th>精准客户数</th>
                                            <th>置顶现金</th>
                                            <th>环比</th>
                                            <th>置顶客户数</th>
                                            <th>智能现金</th>
                                            <th>环比</th>
                                            <th>智能客户数</th>
                                            <th>城市PV</th>
                                            <th>流量变现率</th>
                                            <th>客户充实度</th>
                                          </tr>
                                        </thead>

                                    </table>
                                </div>
                            </div>
                    </div>
                   
                </div>

        </div> <!-- datacontent  -->


        <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{businessName_CN} - 类别产品流量对比</span>
            </div>
 
            <div class="dataShow">
                <div id='cateCmpOption' dateGrp='stat_date' statType='day'>
                    <form class="form-inline">

                        <div class="form-group" style="width:200px;margin-left:15px">
                            <label for="cateCmp_cates">类别：</label>
                            <input type="hidden" name="cateCmp_cates" id="cateCmp_cates" value="$!cateCmp_cates" /> 
                            <select multiple="multiple"  id="cateCmp_mul" class="form-control  input-sm">              
                                    #foreach($!{cate} in ${cateList})
                                        <option value="$!{cate}" #if ($velocityCount <3) selected="selected" #end >
                                            $!{cate}
                                        </option>
                                    #end
                            </select>  
                        </div>

                        <div class="form-group" style="width:150px; margin-left:5px">
                            <label for="index_cateCmp">指标：</label>
                            <select id="index_cateCmp" class="form-control  input-sm" style="width:100px; ">
                                #foreach($index in $indexList_EN)
                                    #set($i = $velocityCount - 1)
                                     <option value="$index">$indexList_CN.get($i)</option>
                                #end
                            </select>
                        </div> 

                        <div class="form-group input-group input-group-sm" style="margin-left: 15px">
                            <label for="proType_cate" style="padding-right: 10px;">产品：</label>
                            <label class="radio-inline"><input type="radio" name="proType_cate" id="proType_cate" value="jingzhun" checked="checked" />精准</label>
                            <label class="radio-inline"><input type="radio" name="proType_cate" id="proType_cate" value="zhiding"/>置顶</label>
                            <label class="radio-inline"><input type="radio" name="proType_cate" id="proType_cate" value="zhineng"/>智能</label>
                        </div> 

                        <button id="refreshCateCmp_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>

                        <div class="btn-group btn-group-sm btn-tab" role="group" aria-label="Basic example"  style="float: right">
                            <button type="button" class="btn btn-default active btnCateCmp" dateGrp='stat_date' statType='day'>日</button>
                            <button type="button" class="btn btn-default btnCateCmp" dateGrp='week_begin' statType='week'>周</button>
                            <button type="button" class="btn btn-default btnCateCmp" dateGrp='month_num' statType='month'>月</button>
                        </div>
                    </form>
                </div>

                <div>
                    <div id="cateCmp_chart" style="height:380px;"></div>
                </div>

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapseTwo">
                                直销城市明细(点击展开) <span id="cateCmpTable_date"></span>
                                </a>
                            </h4>
                        </div>
                        <div id="collapseTwo" class="panel-collapse collapse">
                            <div class="panel-body">
                                <table class="table table-bordered" id="cateCmpTable">
                                    <thead>
                                          <tr>
                                            <th>城市</th>
                                            <th>精准现金</th>
                                            <th>环比</th>
                                            <th>精准客户数</th>
                                            <th>置顶现金</th>
                                            <th>环比</th>
                                            <th>置顶客户数</th>
                                            <th>智能现金</th>
                                            <th>环比</th>
                                            <th>智能客户数</th>
                                            <th>城市PV</th>
                                            <th>流量变现率</th>
                                            <th>客户充实度</th>
                                          </tr>
                                    </thead>

                                </table>
                            </div>
                        </div>
                    </div>
                </div>

            </div> <!-- dataShow  -->
        </div> <!-- datacontent  -->      
#end
<!-- 类别部分结束 -->

<!-- 分平台部分 -->
        <div class="datacontent" id="qsContent">
            <div class="dataTit">
                <i class="mark"></i><span>$!{businessName_CN} - 分平台收入</span>
            </div>
 
            <div class="dataShow">
                <div id='platOption' dateGrp='stat_date' statType='day' indexType='北京'>
                    <form class="form-inline">
                        <div class="form-group input-group input-group-sm" style="width: 20%;float: left">
                            <span class="input-group-addon">
                                <input id="time_checkbox_plat" type="checkbox">
                            </span>
                            <input id="time_input_plat" type="text" class="form-control input-sm" placeholder="添加对比" disabled>
                        </div>

                        <div class="form-group" style="width:180px; margin-left: 10%;">
                            <label for="product">产品线：</label>
                            <select id="product" class="form-control input-sm" style="width:100px; ">
                                <option value="all">全部</option>
                                <option value="jingzhun">精准</option>
                                <option value="zhiding">置顶</option>
                                <option value="zhineng">智能</option>
                            </select>
                        </div> 

                        <div class="form-group" style="width:150px; margin-left:5px">
                            <label for="index_plat">指标：</label>
                            <select id="index_plat" class="form-control  input-sm" style="width:100px; ">
                                #foreach($index in $indexList_EN)
                                    #set($i = $velocityCount - 1)
                                     <option value="$index">$indexList_CN.get($i)</option>
                                #end
                            </select>
                        </div> 

                        <button id="refreshPlat_btn" type="button" class="btn btn-default form-control input-sm">刷新</button>

                        <div class="btn-group btn-group-sm btn-tab" role="group" aria-label="Basic example"  style="float: right">
                            <button type="button" class="btn btn-default active btnPlat" dateGrp='stat_date' statType='day'>日</button>
                            <button type="button" class="btn btn-default btnPlat" dateGrp='week_begin' statType='week'>周</button>
                            <button type="button" class="btn btn-default btnPlat" dateGrp='month_num' statType='month'>月</button>
                        </div>
                    </form>
                </div>

                <div>
                    <div id="plat_chart" style="height:380px;"></div>
                </div>
             </div><!-- dataShow  -->
           

                <div class="panel-group accordion" id="accordion">
                    <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 class="panel-title">
                                    <a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion" href="#collapseOne">
                                    直销城市明细(点击展开) <span id="platTable_date"></span>
                                    </a>
                                </h4>
                            </div>
                            <div id="collapseOne" class="panel-collapse collapse">
                                <div class="panel-body">
                                    <table class="table table-bordered" id="platTable">
                                        <thead>
                                          <tr>
                                            <th>城市</th>
                                            <th>精准现金</th>
                                            <th>环比</th>
                                            <th>精准客户数</th>
                                            <th>置顶现金</th>
                                            <th>环比</th>
                                            <th>置顶客户数</th>
                                            <th>智能现金</th>
                                            <th>环比</th>
                                            <th>智能客户数</th>
                                            <th>城市PV</th>
                                            <th>流量变现率</th>
                                            <th>客户充实度</th>
                                          </tr>
                                        </thead>

                                    </table>
                                </div>
                            </div>
                    </div>
                   
                </div>

        </div> <!-- datacontent  -->
 <!-- 分平台部分结束  -->


</div>

</div>
</body>
<script src="$!{__beat.servletContext.contextPath}/bootstrap/jquery.js"></script>
<link rel="stylesheet" href="$!{__beat.servletContext.contextPath}/bootstrap/libs/jquery-ui/jquery-ui-1.9.2.custom.css" type="text/css" /> 
<link type="text/css" href="$!{__beat.servletContext.contextPath}/bootstrap/libs/jquery-ui/jquery.multiselect.css" rel="stylesheet" />
<script src="$!{__beat.servletContext.contextPath}/bootstrap/libs/jquery-ui/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="$!{__beat.servletContext.contextPath}/bootstrap/libs/jquery-ui/jquery.multiselect.js"></script>

<script src="$!{__beat.servletContext.contextPath}/bootstrap/js/libs/bootstrap.js"></script>
<script src="$!{__beat.servletContext.contextPath}/bootstrap/datepicker/bootstrap-datepicker.js"></script>
<script src="$!{__beat.servletContext.contextPath}/bootstrap/datepicker/nongLiDate.js"></script>
<script src="$!{__beat.servletContext.contextPath}/bootstrap/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script src="$!{__beat.servletContext.contextPath}/echarts2/source/echarts.js"></script>
<script src="$!{__beat.servletContext.contextPath}/bootstrap/js/App.js"></script>
<script type="text/javascript">
    var cate = "$!{businessName}";
    var dayMap={1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六",0:"周日"};
    var datepicker_op={
        format: "yyyy-mm-dd",
        clearBtn: false,
        language: "zh-CN",
        autoclose: true,
        todayHighlight: true,
        minViewMode:0,
        orientation: "top left"
    };

    function getDate(yyyymmdd){
        if(yyyymmdd.length==10){        //yyyy-MM-dd
            return Date.parse(yyyymmdd.substr(0,4)+'/'+yyyymmdd.substr(5,2)+'/'+yyyymmdd.substr(8,2));
        }else if(yyyymmdd.length==8){   //yyyyMMdd
            return Date.parse(yyyymmdd.substr(0,4)+'/'+yyyymmdd.substr(4,2)+'/'+yyyymmdd.substr(6,2));
        }else if(yyyymmdd.length==6){    //yyyyMM
            return Date.parse(yyyymmdd.substr(0,4)+'/'+yyyymmdd.substr(4,2));
        }
    }

    //获取星期几 dayDate 的格式为 yyyy-MM-dd
    function getWeekDay(dayDate){
        var jsDate = new Date(Date.parse(dayDate.replace(/\-/g,'/')));
        var weekNumber = jsDate.getDay();
        return dayMap[weekNumber];
    }

    function setDatePicker(ec,dateGrp,input){
        if('week_begin'==dateGrp){
        }else if('month_num'==dateGrp){
            datepicker_op.minViewMode=1;
            datepicker_op.format='yyyy-mm';
        }else{
            datepicker_op.minViewMode=0; 
            datepicker_op.format='yyyy-mm-dd';
        }
        input.datepicker('remove');
        input.datepicker(datepicker_op);
        //获取显示的日期数组
        var days_show=ec.getShowDays();
        var days_all=ec.getAllDays();
        //设置时间可选范围
        input.datepicker('setStartDate',new Date(getDate(days_all[0])));
        input.datepicker('setEndDate',new Date(getDate(days_all[days_all.length-days_show.length])));
    }


    //格式化输出数字
    function format_number(n){
        var b=parseInt(n).toString(); 
        var len=b.length; 
        if(len<=3){return b;} 
        var r=len%3; 
        return r>0?b.slice(0,r)+","+b.slice(r,len).match(/\d{3}/g).join(","):b.slice(r,len).match(/\d{3}/g).join(","); 
    };

    //加百分号和样式
    function getRate(floatNum){
         var s=parsrFloat(floatNum).toFixed(2)+"%";
         if(floatNum > 0){
            return '<td class="text-danger">' + s + '<span class="glyphicon glyphicon-arrow-up"></span></td>';
         }else if(floatNum < 0){
             return '<td class="text-success">' + s + '<span class="glyphicon glyphicon-arrow-down"></span></td>';
         }else{
            return '<td>' + s + '</td>';
         }
    }  

    //格式化输出数字
    function formatNum(n){
        if(n.toString().indexOf(".")>=0){
            return  parsrFloat(n).toFixed(2);
        }else{
            return n;
        }
    };

    function changeDateGrp(item){
        var dateGrpVal = $(item).attr('dateGrp');
        var stat_type = $(item).attr('statType');
        var curDiv = $(item).closest('div[dateGrp]');
        $(curDiv).attr('dateGrp',dateGrpVal).attr('statType',stat_type);
    }

    function changeIndex(item){
        var indexVal = $(item).val();
        var curDiv = $(item).closest('div[dateGrp]');
        $(curDiv).attr('indexType',indexVal);
    }

    $('.btn-tab button').click(function(e){
        $(this).addClass('active');
        $(this).siblings('button').each(function(){
            $(this).removeClass('active');
        });
    });
   
 
    // 路径配置
    require.config({paths: {echarts: "$!{__beat.servletContext.contextPath}/echarts2/dist",dashboard: "$!{__beat.servletContext.contextPath}/js/income"}});
    
    var charts = [];

/*  城市模块  */
     //城市各产品线趋势图
    require(['dashboard/income_netflow_citypro_v1'],function(cityProEC){
        charts.push(cityProEC);
        cityProEC.show(cate,2);
    });

    require(['dashboard/income_netflow_citycmp_v1'],function(cityCmpEC){
        charts.push(cityCmpEC);
        cityCmpEC.show(cate,2);
    });

/*  类别模块  */
    require(['dashboard/income_netflow_catepro_v1'],function(cateProEC){
        charts.push(cateProEC);
        cateProEC.show(cate,2);
    });

    require(['dashboard/income_netflow_catecmp_v1'],function(cateCmpEC){
        charts.push(cateCmpEC);
        cateCmpEC.show(cate,2);
    });
/* 分平台模块*/
    require(['dashboard/income_platform_v1'],function(platEC){
        charts.push(platEC);
        platEC.show(cate,2);
    });

    $(window).resize(function(){
        $.each(charts,function(i,n){
            n.resize();
        });
    });


</script>
</html>
